<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">  
<title>编辑商品</title>  

<link rel="stylesheet" type="text/css" href="/Public/css/Layout.css?v=<?=C("VERSION")?>">
<link rel="stylesheet" type="text/css" href="/Public/css/Theme.css?v=<?=C("VERSION")?>">
<link rel="stylesheet" type="text/css" href="/Public/css/DefaultUI.css?v=<?=C("VERSION")?>">
<link rel="stylesheet" type="text/css" href="/Public/css/glDatePicker.default.css?v=<?=C("VERSION")?>">
<link rel="stylesheet" type="text/css" href="/Public/uploadify/uploadify.css?v=<?=C("VERSION")?>">

<script type="text/javascript" src="/Public/js/JQuery.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/JQueryUI.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/SitemapHeader_INC.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/UpdateClothingImportSheetSubmit_INC.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/glDatePicker.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/uploadify/jquery.uploadify.js?v=<?=C("VERSION")?>"></script>

<script type="text/javascript">
    var APP = "__APP__";
</script>
</head>
<body onresize="" onunload="">
<div id="Header" style="width: 1350px;"> 
<div class="Inner">    
<div class="Logo Right"></div>    
<div class="LabelButton Right" onclick="window.location.href = '__APP__/Login/logout'">退出</div>
<div class="LabelButton Right" >帮助</div>
<div class="Label Right"><?=$_SESSION['UserName']?></div>
<a class="Application" href="__APP__">首页</a><div class="Label LabelNoPadding">&gt;</div><a class="Application" href="__APP__/ImportSheet/ViewParentsProduct">商品列表</a><div class="Label LabelNoPadding">&gt;</div><div class="Title">编辑商品</div>  </div></div>

<div id="Content" class="MenuColapsed" style="height: 568px; min-height: 568px; width: auto;">  
 
<div class="Inner">    
<table class="MainLayout" id="MainLayoutTable" cellspacing="0" cellpadding="0" border="0" style="height: 568px; min-height: 568px;">      
<tbody><tr>        
<td valign="top" id="MainLayout" class="MainLayoutCell" style="max-height: 100%;">
<table style="width: 100%" cellpadding="0" cellspacing="0" border="0">
<thead class="MainLayoutHeader" id="MainLayoutHeader">
<tr>  
<td class="MainLayoutActions" style="height: 1px;">
<div class="ActionBigLabel">基本信息</div>
</td>
</tr>
</thead>
</table>

<table name="XMLData" cellpadding="0" cellspacing="0">    
<tbody><tr>
<td>
<table class="Form" width="100%" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<th class="Parent" width="100%" colspan="5">商品类型 (*)</th>
</tr>
<tr>
<td width="100%"  colspan="5">
<?=$ClothingImportSheetList[0][product_subtype]?>
</td>
</tr>

<tr>
<th class="Parent" width="100%" colspan="5">品类细分</th>

</tr>

<tr>

<td width="100%">
<?=$ProductSubTypesList[0][ProductSubType]?>
</td>

<td width="100%">
<?=$ProductSubTypesList[0][SecondProductSubType]?>
</td>

<td width="100%">
<?=$ProductSubTypesList[0][ThirdProductSubType]?>
</td>

<td width="100%">
<?=$ProductSubTypesList[0][FourthProductSubType]?>
</td>

<td width="100%">
<?=$ProductSubTypesList[0][FifthProductSubType]?>
</td>
</tr>

<tr>
<th class="Parent" width="100%" >英文品牌</th>
<th class="Parent" width="100%" >中文品牌</th>
<th class="Parent" width="100%" colspan="3">制造商</th>
</tr>
<?php //Debug($ClothingImportSheetList);?>
<tr>
<td width="100%" ><?=$ClothingImportSheetList[0][brand_name_en]?></td>
<td width="100%" ><?=$ClothingImportSheetList[0][brand_name_zh]?></td>
<td width="100%" colspan="3"><?=$ClothingImportSheetList[0]['manufacturer']?></td>
</tr>



<tr>
<th class="Parent" width="100%"  colspan="5">商品名称</th>
</tr>

<tr>
<td width="100%" colspan="5"><?=$ClothingImportSheetList[0]['item_name']?></td>
</tr>


<tr>
<th class="Parent" width="100%" colspan="5" >商品尺码</th>
</tr>

<tr>
<td width="100%" colspan="5">
<?php for($i=0;$i<count($ProductSizeList); $i++){?>
 <div style="margin-right:8px !important;float:left;"><?=$ProductSizeList[$i]['size_name']?> </div> 
<?php }?>
</td>
</tr>


<tr>
<th class="Parent" width="100%" colspan="5" >商品颜色</th>
</tr>
<tr>
<td width="100%" colspan="5">
<?php for($i=0;$i<count($ProductColorList); $i++){?>
<div style="margin-right:8px !important;float:left;"><?=$ProductColorList[$i]['color_name']?> </div>
<?php }?>
</td>
</tr>
</tbody>
</table>     
</td>    
</tr>  
</tbody>
</table>
<div class="Pagination">
<div class="ActionButtonContainer" title="重新编辑">
<a id="ActionButtonSaveChanges" class="ActionButton ActionButtonAttention" href="__APP__/ClothingImportSheet/Edit/ClothingImportSheetID/<?=$ClothingImportSheetList[0]['ID']?>">
<div class="Title">修改基本信息</div>
</a>
</div>
</div>

<table name="XMLData_2" cellpadding="0" cellspacing="0">    
<tbody><tr>
<td>
<table class="Form" width="100%" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<th class="SectionHeader" width="100%" colspan="5"><div class="ActionBigLabel">图片信息 <b>(图片要求：分辨率500×500以上，1000×1000最佳。主图不可有logo 水印以及PS的文字和图案。附图可同时上传达 8 张图片。)</b></div></th>
</tr>
<tr>
<th class="Parent" width="100%" >颜色</th>
<th class="Parent" width="100%" colspan="2">图片上传</th>
</tr>

<?php for($i=0;$i<count($ProductColorList); $i++){?>
<tr>
<td width="100%" >
<?=$ProductColorList[$i]['color_name']?>
</td>
<td width="100%" >
<input type="file" name="upload_main_<?=$ProductColorList[$i]['ID']?>" id="upload_main_<?=$ProductColorList[$i]['ID']?>"/>
<input type="hidden" name="upload_main_name_<?=$ProductColorList[$i]['ID']?>" id="upload_main_name_<?=$ProductColorList[$i]['ID']?>" />
<div id="upload_main_view_<?=$ProductColorList[$i]['ID']?>" ClothingImportTransSheetID="<?=$ProductColorList[$i]['ID']?>" ClothingImportSheetID = "<?=$ClothingImportSheetList[0]['ID']?>" ColorName = "<?=$ProductColorList[$i]['color_name']?>">
<img src="<?=ReplaseUrl($ProductColorList[$i]['main_image_url'])?>" id="main_image_url" onmouseover="ShowDeleteDiv(this);" onmouseout="HiddenDeleteDiv(this);" height="100" width="100"/></div>
</td>
<td width="100%"  >
<input type="file" name="upload_vice_<?=$ProductColorList[$i]['ID']?>" id="upload_vice_<?=$ProductColorList[$i]['ID']?>"/>
<input type="hidden" name="upload_vice_name_<?=$ProductColorList[$i]['ID']?>" id="upload_vice_name_<?=$ProductColorList[$i]['ID']?>" />
<div id="upload_vice_view_<?=$ProductColorList[$i]['ID']?>" ClothingImportSheetID = "<?=$ClothingImportSheetList[0]['ID']?>" ClothingImportTransSheetID="<?=$ProductColorList[$i]['ID']?>" ColorName = "<?=$ProductColorList[$i]['color_name']?>">
<img src="<?=ReplaseUrl($ProductColorList[$i]['other_image_url1'])?>" id="other_image_url1" onmouseover="ShowDeleteDiv(this);" onmouseout="HiddenDeleteDiv(this);" height="100" width="100"/>
<img src="<?=ReplaseUrl($ProductColorList[$i]['other_image_url2'])?>" id="other_image_url2" onmouseover="ShowDeleteDiv(this);" onmouseout="HiddenDeleteDiv(this);" height="100" width="100"/>
<img src="<?=ReplaseUrl($ProductColorList[$i]['other_image_url3'])?>" id="other_image_url3" onmouseover="ShowDeleteDiv(this);" onmouseout="HiddenDeleteDiv(this);" height="100" width="100"/>
<img src="<?=ReplaseUrl($ProductColorList[$i]['other_image_url4'])?>" id="other_image_url4" onmouseover="ShowDeleteDiv(this);" onmouseout="HiddenDeleteDiv(this);" height="100" width="100"/>
<img src="<?=ReplaseUrl($ProductColorList[$i]['other_image_url5'])?>" id="other_image_url5" onmouseover="ShowDeleteDiv(this);" onmouseout="HiddenDeleteDiv(this);" height="100" width="100"/>
<img src="<?=ReplaseUrl($ProductColorList[$i]['other_image_url6'])?>" id="other_image_url6" onmouseover="ShowDeleteDiv(this);" onmouseout="HiddenDeleteDiv(this);" height="100" width="100"/>
<img src="<?=ReplaseUrl($ProductColorList[$i]['other_image_url7'])?>" id="other_image_url7" onmouseover="ShowDeleteDiv(this);" onmouseout="HiddenDeleteDiv(this);" height="100" width="100"/>
<img src="<?=ReplaseUrl($ProductColorList[$i]['other_image_url8'])?>" id="other_image_url8" onmouseover="ShowDeleteDiv(this);" onmouseout="HiddenDeleteDiv(this);" height="100" width="100"/>
</div>
<div id="DeleteImg" style="height:20px;width:100px;position:absolute;display:none;background:#406480;color:#FFFFFF;text-align:center;cursor:pointer;"," visible="false">删除</div>
</td>
</tr>
<script type="text/javascript">
			
			var MainSettings = {
					'height'        : 25,
                    'width'         : 80, 
                    'buttonText'    : '选择主图',
                    'swf'           : '/Public/uploadify/uploadify.swf',
					'formData'      : {'ClothingImportSheetID': '<?=$ClothingImportSheetList[0]['ID']?>', 'ColorName': '<?=$ProductColorList[$i]['color_name']?>', 'ImageType' : 'main','uploadifySessionID':<?=$_SESSION['UserID']?>},
                    'uploader'      :  '__URL__/UploadImage',
                    'auto'          : true,
                    'multi'         : false,
                    'removeCompleted':true,
					'removeTimeout'  : 1,
					'uploadLimit' : 0,
                    'fileTypeExts'  : '*.jpg;*.jpge;*.gif;*.png',
                    'fileSizeLimit' : '2MB',
                    'onUploadSuccess':function(file,data,response){
						if(data != ""){
							var Json = $.parseJSON(data);
							var img = $('#upload_main_view_<?=$ProductColorList[$i]['ID']?> #' + Json.URLID).attr("src", Json.URL);    //设置图片
						}

						var upload_main_view = $("#upload_main_view_<?=$ProductColorList[$i]['ID']?> img");
						var upload_main_buttondisable = true;
						if(upload_main_view.attr("src") == "") { 
								upload_main_buttondisable = false;
						}
						$("#upload_main_<?=$ProductColorList[$i]['ID']?>").uploadify('disable', upload_main_buttondisable);
                    },
					'onSWFReady' : function() {
						var upload_main_view = $("#upload_main_view_<?=$ProductColorList[$i]['ID']?> img");
						var upload_main_buttondisable = true;
						if(upload_main_view.attr("src") == "") { 
								upload_main_buttondisable = false;
						}
						$("#upload_main_<?=$ProductColorList[$i]['ID']?>").uploadify('disable', upload_main_buttondisable);
					}
				};


				$("#upload_main_<?=$ProductColorList[$i]['ID']?>").uploadify(MainSettings);

				var ViceuploadLimit = 0;
				
				$("#upload_vice_view_<?=$ProductColorList[$i]['ID']?> img").each(function(){ 
							if($(this).attr("src") == "") { 
								ViceuploadLimit += 1;
							}
				});

				var ViceSettings ={
				 	'height'        : 25,
                    'width'         : 80, 
                    'buttonText'    : '选择附图',
                    'swf'           : '/Public/uploadify/uploadify.swf',
					'formData'      : {'ClothingImportSheetID' : '<?=$ClothingImportSheetList[0]['ID']?>', 'ColorName': '<?=$ProductColorList[$i]['color_name']?>','ImageType' : 'vice','uploadifySessionID':<?=$_SESSION['UserID']?>},
                    'uploader'      :  '__URL__/UploadImage',
                    'auto'          : true,
                    'multi'         : true,
                    'removeCompleted':true,
					'removeTimeout'  : 1,
					'uploadLimit' : ViceuploadLimit,
                    'fileTypeExts'  : '*.jpg;*.jpge;*.gif;*.png',
                    'fileSizeLimit' : '2MB',
                    'onUploadSuccess':function(file,data,response){
						if(data != ""){
							var Json = $.parseJSON(data);
							var img = $('#upload_vice_view_<?=$ProductColorList[$i]['ID']?> #' + Json.URLID).attr("src", Json.URL);
						}
						var upload_vice_view = $("#upload_vice_view_<?=$ProductColorList[$i]['ID']?> img");
						var upload_vice_buttondisable = true;
						upload_vice_view.each(function(){ 
							if($(this).attr("src") == "") { 
								upload_vice_buttondisable = false;
								return false;
							}
						});

						$("#upload_vice_<?=$ProductColorList[$i]['ID']?>").uploadify('disable', upload_vice_buttondisable);
                    },
					'onSWFReady' : function() {
						var upload_vice_view = $("#upload_vice_view_<?=$ProductColorList[$i]['ID']?> img");
						var upload_vice_buttondisable = true;
						upload_vice_view.each(function(){ 
							if($(this).attr("src") == "") { 
								upload_vice_buttondisable = false;
								return false;
							}
						});

						$("#upload_vice_<?=$ProductColorList[$i]['ID']?>").uploadify('disable', upload_vice_buttondisable);
					}
				};

				$("#upload_vice_<?=$ProductColorList[$i]['ID']?>").uploadify(ViceSettings);
</script>
<?php }?>


</tbody>
</table>     
</td>    
</tr>  
</tbody>
</table> 

<br />


<form name="SingleRecordForm" id="SingleRecordForm" action="__APP__/ClothingImportSheet/Update" method="POST"> 
<input name="ClothingImportSheetID" type="hidden" value="<?=$ClothingImportSheetList[0]['ID']?>">
<table name="XMLData_1" cellpadding="0" cellspacing="0">    
<tbody><tr>
<td>
<table class="Form" width="100%" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<th class="SectionHeader" width="100%" colspan="7"><div class="ActionBigLabel">库存与价格<b></br>1 以下信息中 卖家sku 原价 库存数量 为必填项，若填写特价则必须填写特价开始日期和结束日期 </br>2 SKU号码可以填写货号，若要对接ERP需要核对每个子商品货号</b></div></th>
</tr>
<tr>
<th class="Parent" width="100%">卖家SKU</th>
<th class="Parent" width="100%">尺寸 颜色</th>
<th class="Parent" width="100%">原价</th>
<th class="Parent" width="100%">特价</th>
<th class="Parent" width="100%">特价开始日期</th>
<th class="Parent" width="100%">特价结束日期</th>
<th class="Parent" width="100%">库存数量</th>
</tr>

<tr>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" data="item_sku"  name="item_sku[0]" type="text" id="item_sku" value="<?=$ClothingImportSheetList[0][item_sku]?>" /> 
</td>
<td width="100%">
</td>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" data="standard_price" name="standard_price[0]" type="text" id="standard_price"  value="<?=$ClothingImportTransSheetList[0][standard_price]?>"/>
</td>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" data="sale_price" name="sale_price[0]" type="text" id="sale_price" value="<?=$ClothingImportTransSheetList[0][sale_price]?>" />
</td>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" data="sale_from_date" name="sale_from_date[0]" type="text" id="sale_from_date" value="<?=$ClothingImportTransSheetList[0][sale_from_date]?>"/>
</td>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" data="sale_end_date"  name="sale_end_date[0]" type="text" id="sale_end_date" value="<?=$ClothingImportTransSheetList[0][sale_end_date]?>"/>
</td>
</td>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" data="quantity"   name="quantity[0]" type="text" id="quantity" value="<?=$ClothingImportTransSheetList[0][quantity]?>"/>
</td>
</tr>
<tr>
<td width="100%">
<input style="width:80px; margin-right:30px !important;"  name="textfield" type="button" id="textfield" onclick="CreatSKU();" value="生成SKU" /> 
</td>
<td width="100%">
</td>
<td width="100%">
<input style="width:80px; margin-right:30px !important;" name="textfield" type="button" id="textfield" onclick="CloneValue('standard_price');" value="复制到以下商品"/>
</td>
<td width="100%">
<input style="width:80px; margin-right:30px !important;"  name="textfield" type="button" id="textfield" onclick="CloneValue('sale_price');" value="复制到以下商品" />
</td>
<td width="100%">
<input style="width:80px; margin-right:30px !important;" name="textfield" type="button" id="textfield" onclick="CloneValue('sale_from_date');" value="复制到以下商品"/>
</td>
<td width="100%">
<input style="width:80px; margin-right:30px !important;" name="textfield" type="button" id="textfield" onclick="CloneValue('sale_end_date');" value="复制到以下商品"/>
</td>
<td width="100%">
<input style="width:80px; margin-right:30px !important;" name="textfield" type="button" id="textfield" onclick="CloneValue('quantity');" value="复制到以下商品"/>
</td>
</tr>

<?php for($i=0;$i<count($ClothingImportTransSheetList); $i++){?>
<tr>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" data="item_sku" child="true"  name="item_sku[<?=$ClothingImportTransSheetList[$i]['ID']?>]"
value="<?=$ClothingImportTransSheetList[$i]['item_sku']?>" type="text" id="item_sku_<?=$ClothingImportTransSheetList[$i]['ID']?>" /> 
</td>
<td width="100%">
<?=$ClothingImportTransSheetList[$i]['size_name']?>  <?=$ClothingImportTransSheetList[$i]['color_name']?>
</td>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" name="standard_price[<?=$ClothingImportTransSheetList[$i]['ID']?>]" value="<?=$ClothingImportTransSheetList[$i]['standard_price']?>"  data="standard_price"  type="text" id="standard_price_<?=$ClothingImportTransSheetList[$i]['ID']?>"/>
</td>
<td width="100%">
<input style="width:110px; margin-right:30px !important;"  name="sale_price[<?=$ClothingImportTransSheetList[$i]['ID']?>]"  data="sale_price" type="text" 
value="<?=$ClothingImportTransSheetList[$i]['sale_price']?>"  id="sale_price_<?=$ClothingImportTransSheetList[$i]['ID']?>" />
</td>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" name="sale_from_date[<?=$ClothingImportTransSheetList[$i]['ID']?>]"  data="sale_from_date" type="text" 
value="<?=$ClothingImportTransSheetList[$i]['sale_from_date']?>"  id="sale_from_date_<?=$ClothingImportTransSheetList[$i]['ID']?>"/>
</td>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" name="sale_end_date[<?=$ClothingImportTransSheetList[$i]['ID']?>]"  data="sale_end_date" type="text" 
value="<?=$ClothingImportTransSheetList[$i]['sale_end_date']?>" id="sale_end_date_<?=$ClothingImportTransSheetList[$i]['ID']?>"/>
</td>
</td>
<td width="100%">
<input style="width:110px; margin-right:30px !important;" name="quantity[<?=$ClothingImportTransSheetList[$i]['ID']?>]"  data="quantity" type="text" 
value="<?=$ClothingImportTransSheetList[$i]['quantity']?>" id="quantity_<?=$ClothingImportTransSheetList[$i]['ID']?>"/>
</td>
</tr>
<?php }?>


<tr>
<th class="Parent" width="100%" colspan="7">商品描述（亚马逊目前只支持文字描述，最长 2000 个字符。请注意：不支持输入扩展 ASCII 字符（®、©、™ 等） 或其他特殊字符。）</th>
</tr>


<tr>
<td width="100%"  colspan="7">
<textarea name="product_description" cols="45" rows="5" id="product_description"><?=str_replace("<br />", Chr(10), $ClothingImportSheetList[0]['product_description'])?></textarea>
</td>
</tr>

<tr>
<th class="Parent" width="100%" colspan="7">警告 （如适用，请提示任何涉及该商品的警告。如不要挤压或刺破容器。 避免高压环境和容器受阳光直射。最长500字符）</th>
</tr>


<tr>
<td width="100%"  colspan="7">
<textarea name="safety_warning" cols="45" rows="5" id="safety_warning"><?=str_replace("<br />", Chr(10), $ClothingImportSheetList[0]['safety_warning'])?></textarea>
</td>
</tr>


<tr>
<th class="SectionHeader" width="100%" colspan="5"><div class="ActionBigLabel">商品详情 <b>(此处包含商品的详细属性，此处信息作为消费者筛选商品重要条件，对商品曝光度有重要影响。)</b></div></th>
</tr>


<tr>
<th class="Parent" width="100%">原产国</th>
<th class="Parent" width="100%" >图案样式</th>
<th class="Parent" width="100%">里料</th>
<th class="Parent" width="100%" colspan="2">季</th>
</tr>


<tr>
<td width="100%">
<?php MultipleSelectArr("Countries", "country_of_origin", "Country", "", $ClothingImportSheetList[0]['country_of_origin'], false, "true", "原产国"); ?>
</td>

<td width="100%">
<?php MultipleSelectArr("ClothingPatternTypes", "pattern_type", "ClothingPatternType", "", $ClothingImportSheetList[0]['pattern_type'], false, "true", "图案样式"); ?>
</td>
<td width="100%">
<?php MultipleSelectArr("ClothingInnerMaterialTypes", "inner_material_type", "ClothingInnerMaterialType", "", $ClothingImportSheetList[0]['inner_material_type'], false, "true", "里料"); ?>
</td>
<td width="100%" colspan="2">
<?php MultipleSelectArr("ClothingSeasons", "seasons", "ClothingSeasons", "", $ClothingImportSheetList[0]['seasons'], false, "true", "季"); ?>
</td>

</tr>

<tr>
<th class="Parent" width="100%">面料1</th>
<th class="Parent" width="100%">面料2</th>
<th class="Parent" width="100%">面料3</th>
<th class="Parent" width="100%">面料4</th>
<th class="Parent" width="100%">面料5</th>
</tr>

<tr>
<td width="100%">
<?php MultipleSelectArr("ClothingOuterMaterialTypes  ", "outer_material_type1", "ClothingOuterMaterialType", "", $ClothingImportSheetList[0]['outer_material_type1']); ?>
</td>

<td width="100%">
<?php MultipleSelectArr("ClothingOuterMaterialTypes  ", "outer_material_type2", "ClothingOuterMaterialType", "", $ClothingImportSheetList[0]['outer_material_type2']); ?>
</td>

<td width="100%">
<?php MultipleSelectArr("ClothingOuterMaterialTypes  ", "outer_material_type3", "ClothingOuterMaterialType", "", $ClothingImportSheetList[0]['outer_material_type3']); ?>
</td>

<td width="100%">
<?php MultipleSelectArr("ClothingOuterMaterialTypes  ", "outer_material_type4", "ClothingOuterMaterialType", "", $ClothingImportSheetList[0]['outer_material_type4']); ?>
</td>

<td width="100%">
<?php MultipleSelectArr("ClothingOuterMaterialTypes  ", "outer_material_type5", "ClothingOuterMaterialType", "", $ClothingImportSheetList[0]['outer_material_type5']); ?>
</td>
</tr>
<tr>
<th class="Parent" width="100%">类别1</th>
<th class="Parent" width="100%">类别2</th>
<th class="Parent" width="100%" colspan="3">类别3</th>
</tr>
<tr>
<td width="100%">
<?php MultipleSelectArr("ClothingDepartmentNames", "department_name1", "ClothingDepartmentName", "", $ClothingImportSheetList[0]['department_name1']); ?>
</td>
<td width="100%">
<?php MultipleSelectArr("ClothingDepartmentNames", "department_name2", "ClothingDepartmentName", "", $ClothingImportSheetList[0]['department_name2']); ?>
</td>
<td width="100%" colspan="3">
<?php MultipleSelectArr("ClothingDepartmentNames", "department_name3", "ClothingDepartmentName", "", $ClothingImportSheetList[0]['department_name3']); ?>
</td>

</tr>

<tr>
<th class="Parent" width="100%">款式关键字1</th>
<th class="Parent" width="100%">款式关键字2</th>
<th class="Parent" width="100%">款式关键字3</th>
<th class="Parent" width="100%">款式关键字4</th>
<th class="Parent" width="100%">款式关键字5</th>
</tr>
<tr>
<td width="100%"><?php MultipleSelectArr("ClothingStyleKeywords", "style_keywords1", "ClothingStyleKeyword", "", $ClothingImportSheetList[0]['style_keywords1']); ?></td>
<td width="100%"><?php MultipleSelectArr("ClothingStyleKeywords", "style_keywords2", "ClothingStyleKeyword", "", $ClothingImportSheetList[0]['style_keywords2']); ?></td>
<td width="100%"><?php MultipleSelectArr("ClothingStyleKeywords", "style_keywords3", "ClothingStyleKeyword", "", $ClothingImportSheetList[0]['style_keywords5']); ?></td>
<td width="100%"><?php MultipleSelectArr("ClothingStyleKeywords", "style_keywords4", "ClothingStyleKeyword", "", $ClothingImportSheetList[0]['style_keywords4']); ?></td>
<td width="100%"><?php MultipleSelectArr("ClothingStyleKeywords", "style_keywords5", "ClothingStyleKeyword", "", $ClothingImportSheetList[0]['style_keywords5']); ?></td>
</tr>

<tr>
<th class="Parent" width="100%">产品款式</th>
<th class="Parent" width="100%" colspan="4">
<?php if($ClothingImportSheetList[0][product_subtype] == "T恤/Polo衫/衬衫" || $ClothingImportSheetList[0][product_subtype] == "外套" || $ClothingImportSheetList[0][product_subtype] == "连衣裙" || $ClothingImportSheetList[0][product_subtype] == "针织衫/毛衣" || $ClothingImportSheetList[0][product_subtype] == "单件西装" || $ClothingImportSheetList[0][product_subtype] == "睡衣/家居服" || $ClothingImportSheetList[0][product_subtype] == "短裤" || $ClothingImportSheetList[0][product_subtype] == "长裤"|| $ClothingImportSheetList[0][product_subtype] == "西装套装"){ $tmpClothingTable = "ClothingFitTypes";  $tmpSelectName= "fit_type"; $tmpDisplayfield= "ClothingFitType";?>
裁剪样式
<?php }elseif($ClothingImportSheetList[0][product_subtype] == "文胸" || $ClothingImportSheetList[0][product_subtype] == "泳衣"){ $tmpClothingTable = "ClothingUnderwireTypes";  $tmpSelectName= "underwire_type"; $tmpDisplayfield= "ClothingUnderwireType";?>
钢圈
<?php }?>
</th>
</tr>
<tr>
<td width="100%"><?php MultipleSelectArr("ClothingStyleNames", "style_name", "ClothingStyleName", "", $ClothingImportSheetList[0]['style_name']); ?></td>
<td width="100%" colspan="4">
<?php if($tmpClothingTable !=""){ MultipleSelectArr($tmpClothingTable, $tmpSelectName, $tmpDisplayfield, "", $ClothingImportSheetList[0][$tmpSelectName]); }?>
</td>
</tr>


<?php if($ClothingImportSheetList[0][product_subtype] == "T恤/Polo衫/衬衫" || $ClothingImportSheetList[0][product_subtype] == "外套" || $ClothingImportSheetList[0][product_subtype] == "连衣裙" || $ClothingImportSheetList[0][product_subtype] == "针织衫/毛衣" || $ClothingImportSheetList[0][product_subtype] == "单件西装" || $ClothingImportSheetList[0][product_subtype] == "睡衣/家居服" || $ClothingImportSheetList[0][product_subtype] == "短裤" || $ClothingImportSheetList[0][product_subtype] == "长裤" || $ClothingImportSheetList[0][product_subtype] == "文胸") {?>

<tr>
<th class="Parent" width="100%">

<?php if($ClothingImportSheetList[0][product_subtype] == "T恤/Polo衫/衬衫" || $ClothingImportSheetList[0][product_subtype] == "外套" || $ClothingImportSheetList[0][product_subtype] == "连衣裙" || $ClothingImportSheetList[0][product_subtype] == "针织衫/毛衣" || $ClothingImportSheetList[0][product_subtype] == "单件西装" || $ClothingImportSheetList[0][product_subtype] == "睡衣/家居服") { $tmpClothingTable = "ClothingSleeveTypes";  $tmpSelectName= "sleeve_type";$tmpDisplayfield= "ClothingSleeveType";$tmpTitle= "袖型";?>
袖型
<?php }elseif($ClothingImportSheetList[0][product_subtype] == "短裤" || $ClothingImportSheetList[0][product_subtype] == "长裤"){ $tmpClothingTable = "ClothingWaistStyles";  $tmpSelectName= "waist_style"; $tmpDisplayfield= "ClothingWaistStyle";$tmpTitle= "腰型";?>
腰型
<?php }elseif($ClothingImportSheetList[0][product_subtype] == "文胸"){ $tmpClothingTable = "ClothingStrapTypes";  $tmpSelectName= "strap_type"; $tmpDisplayfield = "ClothingStrapType";$tmpTitle= "肩带样式"; ?>
肩带样式
<?php }?>

</th>

<?php if($ClothingImportSheetList[0][product_subtype] == "T恤/Polo衫/衬衫" || $ClothingImportSheetList[0][product_subtype] == "外套" || $ClothingImportSheetList[0][product_subtype] == "连衣裙" || $ClothingImportSheetList[0][product_subtype] == "针织衫/毛衣" || $ClothingImportSheetList[0][product_subtype] == "短裤" || $ClothingImportSheetList[0][product_subtype] == "长裤") { ?>

<th class="Parent" width="100%">

<?php if($ClothingImportSheetList[0][product_subtype] == "T恤/Polo衫/衬衫" || $ClothingImportSheetList[0][product_subtype] == "外套" || $ClothingImportSheetList[0][product_subtype] == "连衣裙" || $ClothingImportSheetList[0][product_subtype] == "针织衫/毛衣") { $tmpClothingTable1 = "ClothingNeckStyles";  $tmpSelectName1 = "neck_style"; $tmpDisplayfield1 = "ClothingNeckStyle";$tmpTitle1= "领型"; ?>
领型
<?php }elseif($ClothingImportSheetList[0][product_subtype] == "短裤" || $ClothingImportSheetList[0][product_subtype] == "长裤"){ $tmpClothingTable1 = "ClothingLegStyles";  $tmpSelectName1= "leg_style"; $tmpDisplayfield1= "ClothingLegStyle";$tmpTitle1= "裤型";?>
裤型
<?php }?>
</th>

<?php }?>

</tr>


<tr>
<td width="100%"><?php MultipleSelectArr( $tmpClothingTable, $tmpSelectName, $tmpDisplayfield, "", $ClothingImportSheetList[0][$tmpSelectName], false, "true",$tmpTitle); ?></td>

<?php if($ClothingImportSheetList[0][product_subtype] == "T恤/Polo衫/衬衫" || $ClothingImportSheetList[0][product_subtype] == "外套" || $ClothingImportSheetList[0][product_subtype] == "连衣裙" || $ClothingImportSheetList[0][product_subtype] == "针织衫/毛衣" || $ClothingImportSheetList[0][product_subtype] == "短裤" || $ClothingImportSheetList[0][product_subtype] == "长裤") { ?>
<td width="100%"><?php MultipleSelectArr( $tmpClothingTable1, $tmpSelectName1, $tmpDisplayfield1, "", $ClothingImportSheetList[0][$tmpSelectName1], false, "true",$tmpTitle1); ?></td>
<?php }?>
</tr>

<?php }?>



<tr>
<th class="SectionHeader" width="100%" colspan="5"><div class="ActionBigLabel">运营信息</div></th>
</tr>

<tr>
<th class="Parent" width="100%">搜索关键词1</th>
<th class="Parent" width="100%">搜索关键词2</th>
<th class="Parent" width="100%">搜索关键词3</th>
<th class="Parent" width="100%">搜索关键词4</th>
<th class="Parent" width="100%">搜索关键词5</th>
</tr>

<tr>
<td width="100%"><input name="generic_keywords1" maxlength="50" type="text" id="generic_keywords1" value = "<?=$ClothingImportSheetList[0]['generic_keywords1']?>"/></td>
<td width="100%"><input name="generic_keywords2"  maxlength="50" type="text" id="generic_keywords2" value = "<?=$ClothingImportSheetList[0]['generic_keywords2']?>"/></td>
<td width="100%"><input name="generic_keywords3"  maxlength="50" type="text" id="generic_keywords3" value = "<?=$ClothingImportSheetList[0]['generic_keywords3']?>"/></td>
<td width="100%"><input name="generic_keywords4"  maxlength="50" type="text" id="generic_keywords4" value = "<?=$ClothingImportSheetList[0]['generic_keywords4']?>"/></td>
<td width="100%"><input name="generic_keywords5"  maxlength="50" type="text" id="generic_keywords5" value = "<?=$ClothingImportSheetList[0]['generic_keywords5']?>"/></td>

</tr>


<tr>
<th class="Parent" width="100%" colspan="5">发货准备时间(天)</th>
</tr>

<tr>
<td width="100%" colspan="5">
<input type="text" id="fulfillment_latency" name="fulfillment_latency" style="width:50px; margin-right:30px !important;" value="<?=$ClothingImportTransSheetList[0]['fulfillment_latency']?>"/>
</td>
</tr>

</tbody>
</table>     
</td>    
</tr>  
</tbody>
</table> 


<br />
<div class="Pagination">
<div class="ActionButtonContainer" title="确定">
<a id="ActionButtonSaveChanges" class="ActionButton ActionButtonAttention" onClick="Formsubmit(document.SingleRecordForm, 'Next');">
<div class="Title">继续创建商品</div>  
</a>
</div>  

<div class="ActionButtonContainer" title="确定">
<a id="ActionButtonSaveChanges" class="ActionButton ActionButtonAttention" onClick="Formsubmit(document.SingleRecordForm);">
<div class="Title">完成</div>  
</a>
</div> 
</div>

<br />

</form>        
</td>     
</tr>    
</tbody>
</table>  
</div>
</div>

<script type="text/javascript"> 
SetLayoutHeight();   
</script>

</body></html>